@extends('layout.userinfo')
@section('content')

<div class="profile-panel" role="main">
  <!-- ngIf: pageTitleVisible -->
  <h3 ng-if="pageTitleVisible" class="profile-paneltitle ng-scope">
    <span ng-bind="pageTitle" class="ng-binding">我的收藏</span>
    <span class="subtitle ng-binding" ng-bind-html="pageSubtitle | toTrusted"></span>
  </h3>
  <!-- end ngIf: pageTitleVisible -->
  <div class="profile-panelcontent" ng-transclude="">
    <div class="loading ng-binding ng-isolate-scope ng-hide" loading="" content="正在载入商家信息..." ng-show="favorLoading">
      <!-- ngIf: type==='profile' -->
      <img ng-if="type==='profile'" src="//faas.elemecdn.com/desktop/media/img/profile-loading.4984fa.gif" alt="正在加载" class="ng-scope">
      <!-- end ngIf: type==='profile' -->
      <!-- ngIf: type==='normal' -->正在载入商家信息...</div>
    <div class="favor-restaurants ng-scope" ng-show="!favorLoading">
      <h4 class="favor-title">您以收藏
        <span ng-bind="inRegionFavors.length || 0" class="ng-binding">{{$sql2}}</span>家店铺</h4>
      <div class="clearfix">
    <!-- =======================收藏展示遍历开始================================================================== -->
       



    <?php foreach($sql as $k => $v){ ?>
        <div class="favor-rstblock" ng-class="{'outofregion':outofregion}" favor-rst-block="" ng-repeat="restaurant in inRegionFavors">
          <div class="favor-rstblock-header">
            <div class="favor-rstblock-headerbg" ng-style="{'background-image': 'url(' + backgroundUrl + ')'}" style="background-image: url(&quot;//faas.elemecdn.com/desktop/media/img/favor-rst-bg1.804470.jpg&quot;);"></div>
            <a class="favor-rstblock-name ng-binding" ng-bind="restaurant.name" ng-href="/shop/917019" title="前往小杨生煎（新邻生活站店）" href="/shop/917019">{{$v->name}}</a>
          </div>
          <a ng-href="/shop/917019" title="前往小杨生煎（新邻生活站店）" href="/shop/917019">
            <img ng-src="{{$v->photo}}" class="favor-rstblock-logo" alt="商家 LOGO" src="{{$v->photo}}">
          </a>
          <div class="favor-rstblock-starrating icon-star">
            <span class="icon-star" ng-style="{ width: (restaurant.rating * 20) + '%' }" style="width: 94%;"></span>
          </div>
          <span class="favor-rstblock-monthsales ng-binding" ng-bind="'月售' + restaurant.recent_order_num + '单'">月售{{$v->sales}}单</span>
          <div class="favor-rstblock-content">
            <div class="favor-rstblock-item">
              <p>起送价</p>
              <p class="value icon-yen ng-binding" ng-bind="restaurant.float_minimum_order_amount">{{$v->send}}</p></div>
            <div class="favor-rstblock-item">
              <p>送餐时间</p>
              <p class="value time ng-binding" ng-bind="restaurant.order_lead_time_text ||  0">{{$v->transit}}</p></div>
          </div>
          <div class="favor-rstblock-activity">
            <i ng-repeat="activity in restaurant.activities | limitTo: 8" ng-bind="activity.icon_name" class="icon ng-binding ng-scope ng-isolate-scope" favor-activity-icon="" name="activity.icon_name" color="activity.icon_color" style="color: rgb(153, 153, 153); border: 1px solid rgb(153, 153, 153); background-color: transparent;">保</i>           
            <i ng-repeat="activity in restaurant.activities | limitTo: 8" ng-bind="activity.icon_name" class="icon ng-binding ng-scope ng-isolate-scope" favor-activity-icon="" name="activity.icon_name" color="activity.icon_color" style="color: rgb(153, 153, 153); border: 1px solid rgb(153, 153, 153); background-color: transparent;">票</i>
            <a href="delsc/{{$v->mid}}" target="_self" class="favor-rstblock-cancel icon-trash" ng-click="showRemoveMask($index)"></a>
            
          </div>
        </div>
    <?php } ?>   




    

    <!-- =======================收藏展示遍历结束================================================================== -->
      </div>
    </div>
    <div class="favor-restaurants ng-scope" ng-show="!favorLoading">
      <div class="clearfix">
        <!-- ngRepeat: restaurant in outOfRegionFavors -->
        <!-- ngIf: !outOfRegionFavors.length -->
        <div class="nodata ng-isolate-scope" ng-if="!outOfRegionFavors.length" nodatatip="" content="暂无不可配送商家">
        </div>
        <!-- end ngIf: !outOfRegionFavors.length --></div>
    </div>
  </div>
</div>
<script type="text/javascript" src='/elm_home/js/jquery-1.8.3.min.js'></script>
<script>
    function sx(){
        //alert(1111);
        //location.href='/shoucang';
    }
</script>
@endsection